<!DOCTYPE html>
<!--head部分-->
<script type="text/javascript">
    function jump() {
        //经测试：window.location.href与location.href,self.location.href,location.href都是本页面跳转  即在d.html 里跳转
        //作用一样
        //window.location.href="http://www.baidu.com";
        //location.href="http://www.baidu.com";
        //self.location.href="http://www.baidu.com"; //this.location.href="http://www.baidu.com";
        //location.href="http://www.baidu.com";

        //parent.location.href='http://www.baidu.com';  //在c.html 里跳转

        top.location.href='http://www.baidu.com';  //在a.html 里跳转

    }
</script>
<span><strong>这是c.html：</strong></span>
<span>这是d.html：</span><span id="span1"></span><br />
<input type='button' onclick='jump();' value='跳转'>
</html>